package cn.edu.nju.software.zp13.assignment6.client;

import java.io.IOException;

import cn.edu.nju.software.zp13.assignment5.service.soapMessage.CourseScoreListSOAPMsgProducer;
import cn.edu.nju.software.zp13.assignment5.service.soapMessage.SOAPMsgProducer;

public class Main {
	public static void main(String[] args) throws IOException {
		Sender sender = new Sender();
		InputReader reader = new InputReader();
		SOAPMsgProducer producer = new CourseScoreListSOAPMsgProducer(reader.getCourseScoreToBeModified());
		String response = sender.postMsg("http://localhost:8080/SOAPPractice/Test",
				producer.produceSOAPMessage());
		System.out.println("============receive soap message:");
		System.out.println(response);
	}
}
